package com.jianZhiOffer;

import sun.misc.Unsafe;

import java.util.concurrent.Semaphore;
import java.util.concurrent.locks.ReentrantLock;

public class Solution65 {
    public int add(int a, int b) {
        int c;
        while (b != 0) {
            c = a & b << 1;
            a ^= b;
            b = c;
        }
        return a;
    }

    public static void main(String[] args) {
        ReentrantLock reentrantLock = new ReentrantLock();
        Unsafe unsafe = Unsafe.getUnsafe();
        Semaphore semaphore = new Semaphore(1);
    }
}
